package com.imooc.bilibili.repository;

import com.imooc.bilibili.entity.VideoInfo;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface VideoRepository extends ElasticsearchRepository<VideoInfo,Long> {

    /**
     * 对于自定义的elasticsearch查询方法，会进行关键字拆解
     * find by Title like
     * @param keyWord
     * @return
     */
    VideoInfo findByTitleLike(String keyWord);
}
